




  ;=============
  ;=
  ;= DATA TABLES
  ;=
  ;=============


decode_entry
    ;DE = entry
    ;returns A  = memory bank
    ;        DE = ptr
    push bc       
    ld c, d
    ld a, d
    and $0F
    add a, $C0
    ld d, a
    ld a, c
    and $0F
    rra
    rra
    rra
    rra
    pop bc
    ret
    ;17B 
    
  
  
attr_tab
    .WORD 0
    .WORD 0

level_tab
    .WORD 0
    .WORD 0

sprite_tab
    .WORD 0    
    .WORD 0    

fx_table
    .WORD 0     